GravityCompat
Compatibility shim for accessing newer functionality from Gravity.
Properties
Functions
Link copied to clipboard
open fun apply(gravity: Int, w: Int, h: Int, @NonNull container: Rect, @NonNull outRect: Rect, layoutDirection: Int)
Apply a gravity constant to an object and take care if layout direction is RTL or not.
open fun apply(gravity: Int, w: Int, h: Int, @NonNull container: Rect, xAdj: Int, yAdj: Int, @NonNull outRect: Rect, layoutDirection: Int)
Apply a gravity constant to an object.
Link copied to clipboard
Link copied to clipboard
Convert script specific gravity to absolute horizontal value.